/* 墨兮最喜欢设计漂亮的页面啦！(开心地晃着小脚丫) */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #4a8bfc;
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 8px 15px;
    background-color: #4a8bfc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-btn {
    background-color: #5cb85c;
}

.edit-btn {
    background-color: #f0ad4e;
}

.delete-btn {
    background-color: #d9534f;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
}

.student-table th, .student-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.student-table th {
    background-color: #f9f9f9;
    color: #333;
}

.student-table tr:hover {
    background-color: #f5f5f5;
}

/* 分页样式 - 墨兮设计得像小糖果一样可爱呢！ */
.pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #4a8bfc;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.page-current {
    background-color: #4a8bfc;
    color: white !important;
    border-color: #4a8bfc;
}

.page-info {
    margin-left: 15px;
    color: #666;
    font-size: 0.9em;
}

.page-first, .page-last {
    background-color: #f9f9f9;
}

.page-prev, .page-next {
    background-color: #f5f5f5;
}

/* 弹窗样式 - 墨兮设计得像小云朵一样柔软呢~ */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn {
    background-color: #4a8bfc;
    color: white;
}

.confirm-btn {
    background-color: #d9534f;
    color: white;
}

.cancel-btn {
    background-color: #f0f0f0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
